package com.itheima.fujiati;

public class testStu {
    public static void main(String[] args) {
        Student[] st = new Student[3];
        st[0] = new Student("战三",88,99);
        st[1] = new Student("李四",80,98);
        st[2] = new Student("王五",50,75);
        for (int i = 0; i < st.length; i++) {
            if((st[i].getChanese()+st[i].getMath()/2>90)){
                st[i].show();
            }
        }
    }
}
